Make autoscrolling work at the bottom of the screen.
authorMatthias Clasen <mclasen@redhat.com>
Thu, 26 May 2005 17:26:29 +0000 (17:26 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 26 May 2005 17:26:29 +0000 (17:26 +0000)
2005-05-26  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make
autoscrolling work at the bottom of the screen.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtkcombobox.c

index c7e65f25b3a1b2907a03f75c150d8d7727e0bf97..1018ae55135beff86fe62416d96ea9ef7b9732d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make 
+       autoscrolling work at the bottom of the screen.
+
 2005-05-26  Maciej Katafiasz  <email@mathrick.org>
 
        * docs/reference/gtk/tmpl/gtkentry.sgml:
index c7e65f25b3a1b2907a03f75c150d8d7727e0bf97..1018ae55135beff86fe62416d96ea9ef7b9732d0 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make 
+       autoscrolling work at the bottom of the screen.
+
 2005-05-26  Maciej Katafiasz  <email@mathrick.org>
 
        * docs/reference/gtk/tmpl/gtkentry.sgml:
index c7e65f25b3a1b2907a03f75c150d8d7727e0bf97..1018ae55135beff86fe62416d96ea9ef7b9732d0 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make 
+       autoscrolling work at the bottom of the screen.
+
 2005-05-26  Maciej Katafiasz  <email@mathrick.org>
 
        * docs/reference/gtk/tmpl/gtkentry.sgml:
index f03ebb7ace5aed4b966c127e23155a90e8610a5a..e88dc485d121afb103f558007dede1a83e3a01fa 100644 (file)
@@ -3621,10 +3621,10 @@ gtk_combo_box_list_auto_scroll (GtkComboBox *combo_box,
          value = adj->value - (tree_view->allocation.y - y + 1);
          gtk_adjustment_set_value (adj, CLAMP (value, adj->lower, adj->upper - adj->page_size));
        }
-      else if (y >= tree_view->allocation.y + tree_view->allocation.height &&
+      else if (y >= tree_view->allocation.height &&
               adj->upper - adj->page_size > adj->value)
        {
-         value = adj->value + (y - tree_view->allocation.y - tree_view->allocation.height + 1);
+         value = adj->value + (y - tree_view->allocation.height + 1);
          gtk_adjustment_set_value (adj, CLAMP (value, 0.0, adj->upper - adj->page_size));
        }
     }